package com.tan.common.mapstruct.user;

import com.tan.common.domain.user.SysGroup;
import com.tan.common.dto.user.GroupCreateDTO;
import com.tan.common.dto.user.GroupUpdateDTO;
import com.tan.common.mapstruct.BaseConvert;
import com.tan.common.vo.user.GroupVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author Tan-Bowen
 * @description
 * @date 2025/2/17 11:22
 */
@Mapper
public interface GroupConvert extends BaseConvert<GroupVO, SysGroup> {

    GroupConvert INSTANCE = Mappers.getMapper(GroupConvert.class);

    @Override
    GroupVO toTarget(SysGroup source);


    @Override
    List<GroupVO> toTargets(List<SysGroup> source);


    SysGroup dtoDomain(GroupCreateDTO dto);

    SysGroup dtoDomain(GroupUpdateDTO dto);

}
